package com.baidu.ota.application;

import android.app.Activity;

import com.baidu.ota.impl.ActivityImpl;
import com.baidu.ota.impl.ApplicationImpl;
import com.baidu.ota.interfaces.IActivityProxy;
import com.baidu.ota.interfaces.IApplicationProxy;

/**
 * manifest中注册的Application
 * ApplicationImpl、ActivityImpl为各渠道需要实现的类
 */
public class LaunchApplication extends BaseApplication {
    private final IApplicationProxy proxy = new ApplicationImpl(this);

    @Override
    public IApplicationProxy getApplicationProxy() {
        return proxy;
    }

    @Override
    public IActivityProxy getActivityProxy(Activity activity) {
        return new ActivityImpl(activity, proxy.getSystemInfo());
    }
}
